<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE >
<html lang="en">
<head>
<meta charset="UTF-8">
<title>${student.stuName }的基本信息</title>
<link rel="stylesheet" href="${webroot }css/bootstrap.min.css">
<script src="${webroot }js/jquery.min.js"></script>
<script src="${webroot }js/bootstrap.min.js"></script>
<script src="${webroot }js/web.config.js"></script>
<script src="${webroot }js/start/stuInfo.start.js"></script>
<link rel="stylesheet" href="${webroot }css/common.css">
<link rel="stylesheet" href="${webroot }css/client.css">
</head>
<body>
  <table class="table">
    <caption>基本信息<a data-toggle="modal" data-target="#myModal">修改密码</a></caption>
    <tbody>
      <tr>
        <td>学号：</td>
        <td>${student.stuNo }</td>
        <td>姓名：</td>
        <td>${student.stuName }</td>
      </tr>
      <tr>
      	<td>黑名单：</td>
        <td>
          <c:if test="${student.stuStatus == 1 }">否</c:if>
          <c:if test="${student.stuStatus == 2 }">是</c:if>
        </td>
        <td></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <br/>
  <table class="table">
    <caption>信誉信息</caption>
    <tbody>
      <tr>
        <td>预约总次数：</td>
        <td>${pre.recNum }</td>
        <td>确认入座次数：</td>
        <td>${pre.sureNum }</td>
      </tr>
      <tr>
        <td>取消预约次数：</td>
        <td>${pre.cancelNum }</td>
        <td></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">修改密码</h4>
         </div>
         <div class="modal-body">
           <div class="form-group">
             <label class="login_label">原密码：</label>
             <input class="form-control login_input" id="focusedInput" type="password" 
               placeholder="请输入原密码" name="oldPass">
           </div>
           <div class="form-group">
             <label class="login_label">新密码：</label>
             <input class="form-control login_input" id="focusedInput" type="password" 
               placeholder="请输入新密码" name="newPass">
           </div>
           <div class="form-group">
             <label class="login_label">确认新密码：</label>
             <input class="form-control login_input" id="focusedInput" type="password" 
               placeholder="请确认新密码" name="surePass">
           </div>
         </div>
         <div class="modal-footer">
         	<span id="res_msg"></span>
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭</button>
            <button type="button" id="change_pass" class="btn btn-primary">提交更改</button>
         </div>
      </div><!-- /.modal-content -->
  </div><!-- /.modal -->
 </div>
</body>
</html>